package netctoss.demo.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import netctoss.demo.entrty.Cost;
import netctoss.demo.mapper.CostMapper;
import netctoss.demo.service.CostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service
public class CostServiceImpl extends BaseServiceImpl<Cost> implements CostService {

    @Autowired
    CostMapper costMapper;

    public PageInfo<Cost> selectPage(int pageNum, int pageSize, Map map){
        PageHelper.startPage(pageNum,pageSize);
        return new PageInfo<Cost>(costMapper.selectPage(map));
    }
}
